﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;
using DAL;

namespace Service
{
    public class RoleService : IRoleService
    {
        public async Task<IEnumerable<Role>> QueryRole(int? userId = null)
        {
            return await RoleDAL.QueryRole(userId);
        }

        public async Task<int> UpdateUserRole(int userId, int roleId)
        {
            return await RoleDAL.UpdateUserRole(userId, roleId);
        }
    }
}
